package com.wxq.demo.service;

import com.wxq.demo.dao.BookDao;
import com.wxq.demo.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {
    @Autowired
    private BookDao bookDao;

    public List<Book> findAllBooksFromDataSourceOne() {
        return bookDao.findAllBooksFromDataSourceOne();
    }

    public List<Book> findAllBooksFromDataSourceTwo() {
        return bookDao.findAllBooksFromDataSourceTwo();
    }
}
